# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo08
# Description:
# Author:       98745
# Date:         2019/6/8
#-------------------------------------------------------------------------------
from flask import Flask,render_template

app=Flask(__name__)
class Myclass:
    def func(self):
        return 'func'

def myfunc():
    return 'myfunc'

@app.route('/')
def index():
    mydict={}
    mydict['type']='dict'
    mylist=[]
    mylist.append('list')
    myclass = Myclass()
    return render_template('template.txt',mydict=mydict,mylist=mylist,myclass=myclass,myfunc=myfunc)

if __name__ == '__main__':
    app.run()